package cn.com.b2office.service.impl;

import java.util.List;

import cn.com.b2office.dao.OOSReportDao;
import cn.com.b2office.domain.OOSReport;
import cn.com.b2office.service.OOSReportService;

public class OOSReportServiceImpl implements OOSReportService {

	private OOSReportDao oosReportDao = null;

	public void setOosReportDao(OOSReportDao oosReportDao) {
		this.oosReportDao = oosReportDao;
	}

	public int addReport(OOSReport report) {
		return oosReportDao.addReport(report);
	}

	public void deleteReport(int reportId) {
		oosReportDao.deleteReport(reportId);

	}

	public List<OOSReport> find(String memberId, int firstResult, int maxResults) {
		return oosReportDao.find(memberId, firstResult, maxResults);
	}

	public OOSReport getReport(int idno) {
		return oosReportDao.getReport(idno);
	}

	public void updateReport(OOSReport report) {
		oosReportDao.updateReport(report);

	}


	public int getTotalRecordNumByMember(String memberId) {
		
		return oosReportDao.getTotalRecordNumByMember(memberId);
	}

}
